package net.csdn.business.common.domain.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/8/18 11:37
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EventDataRepoApproveVo implements Serializable {

    private Integer action;
    private String actionName;

    @JsonProperty(value = "object_kind")
    private String objectKind;

    @JsonProperty(value = "created_at")
    private String createdAt;

    private EventProjectVo project;

    private MergeRequest mergeRequest;

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class MergeRequest {
        private String id;
        private String iid;
        private String title;
        private String url;
    }

}
